package com.jams.goodox.entity.resp;

import com.jams.goodox.entity.ActiveApplyMemberList;
import com.jams.goodox.entity.Mapper;
import com.jams.goodox.entity.PageInfo;
import com.jams.goodox.net.BaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 活动参与人实体
 * Created by guozhen.hou on 2017/6/15.
 */

public class ActiveContactResp extends BaseEntity{
    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Mapper<List<ActiveApplyMemberList.DataBean>>{
        private PageInfo pageInfo;
        private List<ResultListBean> resultList;

        public PageInfo getPageInfo() {
            return pageInfo;
        }

        public void setPageInfo(PageInfo pageInfo) {
            this.pageInfo = pageInfo;
        }

        public List<ResultListBean> getResultList() {
            return resultList;
        }

        public void setResultList(List<ResultListBean> resultList) {
            this.resultList = resultList;
        }

        @Override
        public List<ActiveApplyMemberList.DataBean> transform() {
            List<ActiveApplyMemberList.DataBean> dataBeanList=new ArrayList<>();
            if(resultList==null||resultList.size()==0)return dataBeanList;
            for (ResultListBean resultListBean:resultList){
                dataBeanList.add(resultListBean.transform());
            }
            return dataBeanList;
        }

        public static class ResultListBean implements Mapper<ActiveApplyMemberList.DataBean>{
            private String mobileNum;
            private String externalIdentity;
            private int sex;
            private String headPicName;
            private int externalContact;
            private String id;
            private String userName;
            private String userId;
            private int status;
            private int represent;

            public String getMobileNum() {
                return mobileNum;
            }

            public void setMobileNum(String mobileNum) {
                this.mobileNum = mobileNum;
            }

            public String getExternalIdentity() {
                return externalIdentity;
            }

            public void setExternalIdentity(String externalIdentity) {
                this.externalIdentity = externalIdentity;
            }

            public int getSex() {
                return sex;
            }

            public void setSex(int sex) {
                this.sex = sex;
            }

            public String getHeadPicName() {
                return headPicName;
            }

            public void setHeadPicName(String headPicName) {
                this.headPicName = headPicName;
            }

            public int getExternalContact() {
                return externalContact;
            }

            public void setExternalContact(int externalContact) {
                this.externalContact = externalContact;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getUserName() {
                return userName;
            }

            public void setUserName(String userName) {
                this.userName = userName;
            }

            public String getUserId() {
                return userId;
            }

            public void setUserId(String userId) {
                this.userId = userId;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public int getRepresent() {
                return represent;
            }

            public void setRepresent(int represent) {
                this.represent = represent;
            }

            @Override
            public ActiveApplyMemberList.DataBean transform() {
                ActiveApplyMemberList.DataBean dataBean=new ActiveApplyMemberList.DataBean();
                dataBean.setActivityUserId(userId);
                dataBean.setHeadPicName(headPicName);
                dataBean.setUserName(userName);
                dataBean.setState(String.valueOf(status));
                return dataBean;
            }
        }
    }
}
